package com.aynu.gulimall.search.feign;

import com.aynu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author mj
 * @version 1.0
 * @date 2021/3/12 22:46
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {

    @GetMapping("/product/attr/info/{attrId}")
    public R info(@PathVariable("attrId") Long attrId);

    /**
     * 根据品牌id集合查询品牌信息
     * @param brandIds
     * @return
     */
    @PostMapping("/product/brand/infos")
    public R brandInfo(@RequestBody List<Long> brandIds);
}
